package cn.com.wms.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "SYS_USER")
public class EmployBean extends BaseModel {
	private String id;

	/**
	 * 车间主键
	 */
	private String workShopId;

	/**
	 * 岗位主键
	 */
	private String position;

	/**
	 * 编号
	 */
	private String userNo;

	/**
	 * 姓名
	 */
	private String userName;

	/**
	 * 密码
	 */
	private String password;
	private String fakePassword;

	/**
	 *类型
	 */
	private String userType;

	/**
	 * 出生日期
	 */
	private Date birthday;

	/**
	 * 性别
	 */
	private String gender;

	private String genderImpl;

	/**
	 * 学历
	 */
	private String degree;

	private String degreeImpl;

	/**
	 * 入职日期
	 */
	private Date entryDate;

	/**
	 * 毕业院校
	 */
	private String graduateSchool;

	/**
	 * 毕业时间
	 */
	private Date graduateDate;

	/**
	 * 专业
	 */
	private String professionnal;

	/**
	 * 证件类型
	 */
	private String credType;
	private String credTypeImpl;

	/**
	 * 人员状态
	 */
	private String userState = "1";/* 状态 这里默认在职 生成日志的时候要注意一下 新增的要置为空 */
	private String userStateImpl;

	/**
	 * 手机
	 */
	private String mobile;

	/**
	 * 座机
	 */
	private String telphone;

	/**
	 * EMAIL
	 */
	private String email;

	/**
	 * 地址
	 */
	private String address;

	// 照片 PICTURE
	private String picture;

	// 婚姻状况 IS_MARRIAGE
	private String isMarriage;
	private String isMarriageImpl;

	// 英文名 ENGLISH_NAME
	private String englishName;

	// 政治面貌 POLITY_STATUS
	private String polityStatus;
	private String polityStatusImpl;

	// 当前职务 DUTY
	private String duty;

	// 证件编号 CRED_NO
	private String credNo;

	// 备注 REMARK
	private String remark;

	/**
	 * 最后一次密码修改日期
	 */
	private Date passwordDate;

	private String pictureUrl;

	private String fileUrl;// lizhenzhen2015.10.29

	// lizhenzhen2015.08.27添加连续输入密码错误次数
	private String errorNum;
	private String lockState = "0";// 锁定状态
	private Date errorTime;

	// lizhenzhen2015.08.28添加人员资质维护
	private String isStopUse;// 是否停用
	private String pwValidate_days;// 密码有效期天数
	private String pwValidate_hours;// 密码有效期小时数
	private Date lockDate;// 锁定时间

	@Id
	@Column(name = "id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "FILEURL")
	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	@Column(name = "IS_STOPUSE")
	public String getIsStopUse() {
		return isStopUse;
	}

	public void setIsStopUse(String isStopUse) {
		this.isStopUse = isStopUse;
	}

	@Column(name = "PASSWORD_VALIDATE_DAYS")
	public String getPwValidate_days() {
		return pwValidate_days;
	}

	public void setPwValidate_days(String pwValidate_days) {
		this.pwValidate_days = pwValidate_days;
	}

	@Column(name = "PASSWORD_VALIDATE_HOURS")
	public String getPwValidate_hours() {
		return pwValidate_hours;
	}

	public void setPwValidate_hours(String pwValidate_hours) {
		this.pwValidate_hours = pwValidate_hours;
	}

	@Column(name = "LOCK_DATE")
	public Date getLockDate() {
		return lockDate;
	}

	public void setLockDate(Date lockDate) {
		this.lockDate = lockDate;
	}

	@Column(name = "ERRORTIME")
	public Date getErrorTime() {
		return errorTime;
	}

	public void setErrorTime(Date errorTime) {
		this.errorTime = errorTime;
	}

	@Column(name = "LOCK_STATE")
	public String getLockState() {
		return lockState;
	}

	public void setLockState(String lockState) {
		this.lockState = lockState;
	}

	@Column(name = "ERROR_NUMBER")
	public String getErrorNum() {
		return errorNum;
	}

	public void setErrorNum(String errorNum) {
		this.errorNum = errorNum;
	}

	@Column(name = "PICTURE_URL")
	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}

	@Column(name = "USER_NO")
	public String getUserNo() {
		return userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	@Column(name = "USER_NAME")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "PASSWORD")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "USER_TYPE")
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	@Column(name = "BIRTHDAY")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "GENDER")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "DEGREE")
	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	@Column(name = "ENTRY_DATE")
	public Date getEntryDate() {
		return entryDate;
	}

	public void setEntryDate(Date entryDate) {
		this.entryDate = entryDate;
	}

	@Column(name = "GRADUATE_SCHOOL")
	public String getGraduateSchool() {
		return graduateSchool;
	}

	public void setGraduateSchool(String graduateSchool) {
		this.graduateSchool = graduateSchool;
	}

	@Column(name = "GRADUATE_DATE")
	public Date getGraduateDate() {
		return graduateDate;
	}

	public void setGraduateDate(Date graduateDate) {
		this.graduateDate = graduateDate;
	}

	@Column(name = "PROFESSIONAL")
	public String getProfessionnal() {
		return professionnal;
	}

	public void setProfessionnal(String professionnal) {
		this.professionnal = professionnal;
	}

	@Column(name = "CRED_TYPE")
	public String getCredType() {
		return credType;
	}

	public void setCredType(String credType) {
		this.credType = credType;
	}

	@Column(name = "USER_STATE")
	public String getUserState() {
		return userState;
	}

	public void setUserState(String userState) {
		this.userState = userState;
	}

	@Column(name = "MOBILE")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "TELPHONE")
	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	@Column(name = "EAMIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "ADDRESS")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "POSITION")
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "WORK_SHOP_ID")
	public String getWorkShopId() {
		return workShopId;
	}

	public void setWorkShopId(String workShopId) {
		this.workShopId = workShopId;
	}

	@Column(name = "PICTURE")
	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	@Column(name = "IS_MARRIAGE")
	public String getIsMarriage() {
		return isMarriage;
	}

	public void setIsMarriage(String isMarriage) {
		this.isMarriage = isMarriage;
	}

	@Column(name = "ENGLISH_NAME")
	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	@Column(name = "POLITY_STATUS")
	public String getPolityStatus() {
		return polityStatus;
	}

	public void setPolityStatus(String polityStatus) {
		this.polityStatus = polityStatus;
	}

	@Column(name = "DUTY")
	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "CRED_NO")
	public String getCredNo() {
		return credNo;
	}

	public void setCredNo(String credNo) {
		this.credNo = credNo;
	}

	public void setUserStateImpl(String userStateImpl) {
		this.userStateImpl = userStateImpl;
	}

	@Column(name = "PASSWORD_DATE")
	public Date getPasswordDate() {
		return passwordDate;
	}

	public void setPasswordDate(Date passwordDate) {
		this.passwordDate = passwordDate;
	}

	public boolean equals(Object obj) {
        if (obj instanceof EmployBean) {
        	EmployBean e = (EmployBean) obj;
            return (this.getId().equals(e.getId()));
        }
        return super.equals(obj);
    }
        
    public int hashCode() {
        return this.getId().hashCode();
    }

	public String getFakePassword() {
		return fakePassword;
	}

	public void setFakePassword(String fakePassword) {
		this.fakePassword = fakePassword;
	}
	
}